#!/usr/bin/php
<?php
Class DB
{
	error_reporting(0);
	var $host='localhost';
	var $user='root';
	var $db='DHDS';
	var $pass='7734db';
	
	public function __Construct($query)
	{
		$this->connect();
		$r=mysql_query($query[1]);
		echo mysql_result($r,$query[2]);
	}
	
	public function connect()
	{
		mysql_connect($this->host,$this->user,$this->pass);
		mysql_select_db($this->db);
	}
}
new DB($argv);
?>